/**
 * @Author Puzzle
 * @Date 2022/6/23 5:15 下午
 **/

package router

import (
	"zsc-boot/app/system_layer/api"
	"zsc-boot/core/web"
)

var serviceMenuApi = api.ServiceMenuApi

func InitServiceMenuRouterGroup() {
	menuGroup := web.GetGin().Group("/menu")

	{
		menuGroup.POST("/createMenu", serviceMenuApi.CreateServiceMenu)                   // 创建菜单
		menuGroup.DELETE("/deleteMenu", serviceMenuApi.DeleteServiceMenu)                 // 删除菜单
		menuGroup.PUT("/updateMenu", serviceMenuApi.UpdateServiceMenu)                    // 更新菜单
		menuGroup.PUT("/updateServiceMenuStatus", serviceMenuApi.UpdateServiceMenuStatus) // 更新菜单状态
	}
	{
		menuGroup.GET("/getMenu", serviceMenuApi.GetServiceMenu)         // 获取菜单详情
		menuGroup.GET("/getMenuList", serviceMenuApi.GetServiceMenuList) // 获取菜单列表
	}

}
